package cn.deepmax.spring.cloud.system.sale.repository;

import cn.deepmax.spring.cloud.common.data.BaseRepository;
import cn.deepmax.spring.cloud.system.sale.entity.Order;

import java.util.Optional;

public interface OrderRepository extends BaseRepository<Order,Long> {

    Optional<Order> findByIdAndUserId(Long id, Long userId);

}
